{% extends "front/front_signbase.html" %}
{% from "front/_macros.html" import load_static_file %}

{% block title %}
    注册汇智论坛账号
{% endblock %}

{% block page_title %}
    {{ self.title() }}
{% endblock %}

{% block head %}
    <script src="{{ load_static_file("front/js/register.js")}}"></script>
{% endblock %}

{% block signbox %}
    <div class="form-group">
        <div class="input-group">
            <input class="form-control" type="text" name="email" placeholder="邮箱账号">
            <span class="input-group-btn">
                <button class="btn btn-primary" type="button" id="email-captcha-send">发送验证码</button>
            </span>
        </div>
    </div>
    <div class="form-group">
        <input type="text" class="form-control" name="email_captcha" placeholder="邮箱验证码">
    </div>
    <div class="form-group">
        <input type="text" class="form-control" name="username" placeholder="用户名">
    </div>
    <div class="form-group">
        <input type="password" class="form-control" name="password1" placeholder="密码">
    </div>
    <div class="form-group">
        <input type="password" class="form-control" name="password2" placeholder="确认密码">
    </div>
    <div class="form-group">
        <div class="input-group">
            <input type="text" class="form-control" name="graph_captcha" placeholder="图形验证码">
            <span class="input-group-addon captcha-addon">
                <img id="captcha-img" class="captcha-img" src="{{ url_for("front.graph_captcha") }}">
            </span>
        </div>
    </div>
    <div class="form-group">
        <button class="btn btn-primary btn-block" id="submit-btn">立即注册</button>
        <span id="return-to-span" style="display: none">{{ return_to }}</span>
    </div>
{% endblock %}